<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var obj1 = {
            name:'tom',
            age:13
        }
        var obj2 = {
            address:'广西'
        }
        // var res1 = Object.assign(obj1,obj2);
        // console.log(obj1);
        // console.log(obj2);
        // console.log(res1);

        var res2 = Object.assign({},obj1);
        console.log(obj1);
        console.log(res2);
        console.log(obj1 == res2);

    </script>
</body>
</html>